<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
	<head>
		<title>管理导航菜单</title>
		<meta content="text/html; charset=UTF-8" http-equiv=Content-Type>
		<link rel=stylesheet type=text/css href="../Skin/${themeType}/${themeStyle}/Admin_Left.css">
		<link href="../JS/ExtJsTree/resources/css/ext-all.css" rel="stylesheet" type="text/css" >
   		<script type="text/javascript" src="../JS/ExtJsTree/adapter/ext/ext-base.js"></script>
   		<script type="text/javascript" src="../JS/ExtJsTree/ext-all.js"></script>
		<link rel='stylesheet' href='../Skin/${themeType}/${themeStyle}/Admin_Style.css'>
		<script type="text/javascript">
			function hideShowTd(id){
				if(document.getElementById(id).style.display=="none"){
					document.getElementById(id).style.display="inline";
				}else{
					document.getElementById(id).style.display="none";
				}
			}
		</script>
	</head>
	<body>
		<div style="border:0;margin:0;border-collapse:collapse;border-spacing:0;width: 180px;text-align: center;">
			<div style="height: 44px;vertical-align:top">
				<img src="../Skin/${themeType}/${themeStyle}/images/title.gif">
			</div>
		</div>
		<div style="border:0;margin:0;border-collapse:collapse;border-spacing:0;width: 180px;text-align: center;">
					<div id=menuTitle0 class=menu_title style="height:26px; background-image: ../<s:property value="#session.themeStyle.path" default="Skin/PM/blue/"/>/images/title_bg_quit.gif"
						onmouseover="this.className='menu_title2';"
						onmouseout="this.className='menu_title';">
						&nbsp;&nbsp;
						<a href="index-main" target=main><b><SPAN
								class=glow>管理首页</SPAN> </b> </A><SPAN class=glow> | </SPAN><A
							href="login-logout" target=top><B><SPAN
								class=glow>退出</SPAN> </B> </A>
					</div>
					<div id=submenu0 style="height:97px;background-image=../<s:property value="#session.themeStyle.path" default="Skin/PM/blue/"/>/images/title_bg_admin.gif">
						<div style="WIDTH: 180px">
							<div style="border:0;margin:0;border-collapse:collapse;border-spacing:0;width: 130px;text-align: center;">
										<div style="height:25px;"> 
											当前用户：<s:property value="#session.CurrentUser.name" /> 
										</div>
										<div style="height:25px;"> 
										所属部门：<s:property value="#session.CurrentUser.department.name" /></div>
										<div style="height:20px" >
											职&nbsp;&nbsp;&nbsp;&nbsp;位：<s:property value="#session.CurrentUser.role.name" />
										</div>
							</div>
						</div>
						<div style="height: 167px">
							<div style="border:0;margin:0;border-collapse:collapse;border-spacing:0;width: 130px;text-align: center;">
								<div style="height: 20px;" ><br></div>
							</div>
						</div>
					</div>
		</div>
		<s:iterator value="#session.menus" id="menu" var="menu" status="stuts">
		    <div id="menuTitle20${menu.id }" class="title menu_title" style="background-image: ${menu.icon }" onmouseover="this.className='menu_title2';" onmouseout="this.className='menu_title';" onclick="hideShowTd('submenu20${menu.id }')" >
			    <a href="${menu.url }" target=main><span class=glow><img src="images/xuexiao.png" /></span>${menu.name}</a>
		    </div>
		    <ul id="submenu20${menu.id }" class="menuson" style="DISPLAY: none">
			<s:iterator value="%{#menu.menus}" var="subMenu" status="subStuts">
		        <li><cite></cite><a href="${subMenu.url }" target="rightFrame">${subMenu.name }</a><i></i></li>
			</s:iterator>
	    	</ul>
		</s:iterator>

		<table style="border:0;margin:0;border-collapse:collapse;border-spacing:0;width: 167px;text-align: center;">
			<tbody>
				<tr>
					<td id=menuTitle208 class=menu_title style="height:28px;background-image:../<s:property value="#session.themeStyle.path" default="Skin/PM/blue"/>/images/Admin_Left_04.gif;"
						onmouseover="this.className='menu_title2';"
						onmouseout="this.className='menu_title';">
						<SPAN>系统信息</SPAN>
					</td>
				</tr>
				<tr>
					<td style="text-align:right">
						<div style="width: 165px" class=sec_menu>
							<table style="border:0;margin:0;border-collapse:collapse;border-spacing:0;width: 130px;text-align: center;">
								<tbody>
									<tr>
										<td style="height:20px;">
											<br>
											版权所有：<br><A href="http://www.hmsm.com.cn/" target=_blank>泸州市黑马数码科技有限公司</A><br>
											<br>技术支持：<A href="http://www.hmsm.com.cn/" target=_blank>泸州市黑马数码科技有限公司</A><br>
											<br>
										</td>
									</tr>
								</tbody>
							</table>
						</div>
					</td>
				</tr>
			</tbody>
		</table>
	</body>
</html>